﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BugTracker_415.Models
{
    public abstract class WorkItem
    {
        public string  Title { get; set; }
        public DateTime DateCreated { get; set; }
        public MyPriorities Priority { get; set; } //0,1,2 - Priority enum
        // constructors...
        public WorkItem()
        {
            this.DateCreated = DateTime.Now;
        }
        // Overload constructor:
        public WorkItem(DateTime cTime)
        {
            this.DateCreated = cTime;

        }
    }

    public class Bug : WorkItem
    {
        public string StepsToReproduce { get; set; }
    }
    public class TaskToDo : WorkItem
    {
        public string Description { get; set; }
    }

    ///
    enum MyPriorities
    {
        HIGH,
        MEDIUM,
        LOW
    }

}